import { axios } from '@/utils/requestFile'

export function exportSong (parameter) {
  return axios({
    url: '/file/export/music',
    method: 'post',
    responseType: 'blob',
    data: parameter
  })
}

export function upload (parameter) {
  return axios({
    url: '/file/upload',
    method: 'post',
    data: parameter
  })
}

export function download (parameter) {
  return axios({
    url: '/file/download/' + parameter,
    method: 'get',
    responseType: 'blob'
  })
}

export function remove (parameter) {
  return axios({
    url: '/file/remove',
    method: 'post',
    data: parameter
  })
}
